package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.User;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface UserService {

    User findUserByUsername(String username);

    PageResult findPage(QueryPageBean queryPageBean);

    void add(User user, Integer[] roleIds);

    User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void editUser(User user, Integer[] roleIds) throws ParseException;

    void deleteUser(Integer id);

    List<User> findAll();

    User findUserByTelephoneAndAccount(Map map);

    void resetPasswordByUsername(Map map);
}
